home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / TanCircle / TanCircleView.h < prev    next >
Text File  |  1991-10-26  |  1KB  |  57 lines

  1.  
  2. #import    <appkit/View.h>
  3. #import    <appkit/graphics.h>
  4.  
  5. /**********************************************************************/
  6.  
  7. #define    MAXCIRCLES    ( 225 )
  8.  
  9. #define    MAXCOLOR    ( 1.0 )
  10. #define    MINCOLOR    ( 0.0 )
  11. #define    COLORINC    ( 0.1 )
  12.  
  13. /**********************************************************************/
  14.  
  15. typedef    struct
  16.     {
  17.         int    x;
  18.         int    y;
  19.         int    r;
  20.     }
  21.     CIRCLE;
  22.  
  23. /**********************************************************************/
  24.  
  25. @interface TanCircleView : View
  26. {
  27.     CIRCLE    Circles[ MAXCIRCLES ];
  28.     int        CurCircle;
  29.     float    CurColor;
  30.     int        MaxRadius;
  31.     int        Radius;
  32.     int        Max_X;
  33.     int        Max_Y;
  34.     int        X_pos;
  35.     int        Y_pos;
  36. }
  37.  
  38. /*********************************************************************/
  39.  
  40. - initFrame  : ( const NXRect * ) frameRect;
  41.  
  42. - ( const char * ) windowTitle;
  43.  
  44. - sizeTo : ( NXCoord ) width : ( NXCoord ) height;
  45.  
  46. - oneStep;
  47.  
  48. - drawSelf : ( NXRect * ) r : ( int ) count;
  49.  
  50. - ( int ) distance : ( int ) x : ( int ) y : ( int ) i;
  51.  
  52. - ( int ) newRadius : ( int ) x : ( int ) y;
  53.  
  54. - genFirstCircle;
  55.  
  56. @end
  57.